<?php

namespace app\common\validate;

class CommitteesValidate extends BaseValidate
{
    /**
     * 验证规则
     */
    protected $field = [
        'committees_id'   => '村委会ID',
        'committees_name' => '村委会名称',

    ];

    /**
     * 验证场景
     */
    protected $scene = [
        'index'  => [],
        'save'   => [],
        'update' => [],
        'delete' => [],
        'read'   => [],
        'addCommittees'=>[
            "committees_name"=>"require|unique:committees"
        ],
        'setCommitteesItem'=>[
            "committees_name"=>"require",
            "committees_id"=>"require|integer|>=:1",
        ],
        'delCommitteesItem'=>[
            "committees_id"=>"require|array",
        ],
        'getCommitteesItem'=>[
            "committees_id"=>"require|integer|>=:1",
        ],
        'getCommitteesList'=>[
            "committees_id"=>"integer|>=:1",
        ],
        'getCommitteesPage'=>[

        ]
    ];
    /**
     * 提示消息
     */
    protected $message = [

    ];


}
